/* 页面过渡动画样式 */
.page-transition-group {
  position: relative;
  width: 100%;
  height: 100%;
}

.page-wrapper {
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
}

/* 页面进入动画 */
.page-enter {
  opacity: 0;
  transform: translateX(16px) scale(0.99);
}

.page-enter-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1), opacity 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* 页面退出动画 */
.page-exit {
  opacity: 1;
  transform: translateX(0) scale(1);
  position: absolute;
  inset: 0;
  width: 100%;
}

.page-exit-active {
  opacity: 0;
  transform: translateX(-16px) scale(0.99);
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1), opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* 页面内容淡入动画 */
@keyframes pageContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-content {
  animation: pageContentFadeIn 0.6s ease-out;
}

/* 加载状态动画 */
@keyframes loadingPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading-content {
  animation: loadingPulse 1.5s ease-in-out infinite;
}

/* 页面切换时的背景动画 */
.page-transition-group::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: -1;
}

.page-transition-group.transitioning::before {
  opacity: 1;
}